const merge = require('webpack-merge')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const baseconfig = require("./webpack.base");
const { rootResolve, distResolve } = require('./unit.js');



module.exports = merge.merge(baseconfig, {
    plugins: [
        new CopyWebpackPlugin({
            patterns: [
                { from: rootResolve('three.js'), to: distResolve('three.js') },
                { from: rootResolve('res'), to: distResolve('res')}
            ]
        })
    ]
})